// 报表导出接口导出前参数处理
export default function beforeExportFn(){
    if(this.ids && this.ids.length){
        this.queryParams.params = this.queryParams.params?this.queryParams.params: {};
        this.queryParams.params['recordIds'] = this.ids;
    }else{
        this.queryParams.params['recordIds'] = ''
    }
    if (null == this.daterangeReportingDate || '' == this.daterangeReportingDate) {
        delete this.queryParams.params['beginReportingDate']
        delete this.queryParams.params['endReportingDate']
    }else{
        this.queryParams.params['beginReportingDate'] = this.daterangeReportingDate[0]
        this.queryParams.params['endReportingDate'] = this.daterangeReportingDate[1]
    }
}